<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'cache.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript">
	var timer;
	var load=new Date().getTime();
	
	var setTime=function(){
	 cur=new Date().getTime();
	document.getElementById("text").innerHTML=parseInt((cur-load)/1000);
	if(cur-load >3*1000){ 
	  clearInterval(timer);
	  location.href="index.jsp";
	} 
	
	}
	timer=window.setInterval("setTime();", 1000);
	</script>

  </head>
  
  <body>
  <div style="margin:260px 0px 0px 20px " align="center" margin="100px 100px" >
  恭喜您注册成功！<br>
 <a href="index.jsp">点击</a>或等待<p id="text"></p>秒钟返回登录界面 登录<br>
 </div>
  </body>
</html>
